import myaxios from "../MyAxios"
import BASEURL from "../BaseUrl"
const BMDURL = BASEURL.BMDURL

const directorApi={
queryAllDirectors(){
  let url = BMDURL+"/movie-directors"
  return myaxios.get(url,{page:1,pagesize:100})
},

queryDierctorByName(params){
  let url = BMDURL+"/movie-directors/name"
  return myaxios.post(url,params)
},
addDirector(params){
  let url = BMDURL+"/movie-director/add"
  return myaxios.post(url,params)
}


}
export default directorApi;